package com.cizzy.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cizzy.user.common.Result;
import com.cizzy.user.entity.User;
import com.cizzy.user.entity.UserCount;
import com.cizzy.user.entity.dto.UserDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author crissy-月下闲人
 * @since 2023-10-29
 */
public interface IUserCountService extends IService<UserCount> {

    /**
     * 通过 id 查询用户
     * @param id 用户ID
     * @return 用户信息
     */

    void createUserCountById(Long id);

//    Result<UserCount> getUserCountById(Integer id);

    Result<UserCount> getUserCountByUserId(Long userId);

    Result<List<UserCount>> getUserCountListByUserIds(List<Long> userIdList);

    Result<UserCount> addUserCountById(String column, Long id, int num);
}
